package cc.aiee.demo.springboot.controller.wxpay.bean;

import javax.validation.constraints.NotBlank;

import cc.aiee.core.abstracts.AbstractQuickModel;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@Schema(description = "信用卡支付接口")
@EqualsAndHashCode(callSuper = false)
public class WxPayRefundQuery extends AbstractQuickModel {
	
	@Schema(description = "随机字符串",  required = true)
	@NotBlank()
	private String nonce_str;
	
	@Schema(description = "微信支付订单号")
	private String transaction_id;
	
	@Schema(description = "商户订单号")
	private String out_trade_no;
	
	@Schema(description = "商户退款单号")
	private String out_refund_no;
	
	@Schema(description = "订单金额")
	private Integer total_fee;
	
	@Schema(description = "退款金额")
	private Integer refund_fee;
	
	
	@Override
	public <T> T model(T cls) {
		BeanUtil.copyProperties(this, cls, true);
		return cls;
	}

}
